/**
 * 存储sessionStorage
 */
 export const setSession = (name, content) => {
	if (!name) return;
	if (typeof content !== 'string') {
		content = JSON.stringify(content);
	}
	window.sessionStorage.setItem(name, content);
}

/**
 * 获取sessionStorage
 */
export const getSession = name => {
	if (!name) return;
	return JSON.parse(window.sessionStorage.getItem(name))
}

/**
 * 删除sessionStorage
 */
export const removeSession = name => {
	if (!name) return;
	window.sessionStorage.removeItem(name);
}


/**
 * 存储localStorage
 */
export const setLocal = (name, content) => {
	if (!name) return;
	if (typeof content !== 'string') {
		content = JSON.stringify(content);
	}
	window.localStorage.setItem(name, content);
}

/**
 * 获取localStorage
 */
export const getLocal = name => {
	if (!name) return;
	return JSON.parse(window.localStorage.getItem(name))
}

export function parseTime(time, cFormat) {
  return null
}